FileSaver.this

Creates a new #GtkSourceFileSaver object with a target location.

When the file saving is finished successfully, @target_location is set to the @file's [property@File:location] property. If an error occurs, the previous valid location is still available in [class@File].

This constructor is suitable for a "save as" operation, or for saving a new buffer for the first time.

Parameters

buffer Buffer

the #GtkSourceBuffer to save.

file File

the #GtkSourceFile.

targetLocation FileIF

the #GFile where to save the buffer to.

Return Value

a new #GtkSourceFileSaver object.

Throws

ConstructionException GTK+ fails to create the object.

Meta